package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.DisasterPrevention.EventBean;
import com.project.bean.ExpertConsultation.ConsultBean;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

public interface IEventMapper extends BaseMapper<EventBean> {

    IPage<EventBean> findCutEvent(Page<EventBean> page, @Param("eventName") String eventName,@Param("eventStage") String eventStage,
                                  @Param("regionName") String regionName,@Param("start") LocalDate startDate,@Param("end") LocalDate endData);



    EventBean findEvent(int eventId);


    //会商灾情

    List<EventBean> findConsultEvent(String eventStage);


    void addEvent(EventBean eventBean);

    EventBean findConsult(int eventId);

}
